//
//  MineViewController.m
//  TestApplication]
//
//  Created by dllo on 16/8/26.
//  Copyright © 2016年 DM.C. All rights reserved.
//

#import "MineViewController.h"
#import "LoginViewController.h"
#import "RegisterViewController.h"
#import "OptionsViewController.h"
#import "LoginSuccessViewController.h"
#import "SuccessSetViewController.h"
#import "LoginDataData.h"
#import "LoginData.h"
#import "LoginRootClass.h"
#import "LoginDataRootClass.h"

@interface MineViewController ()
@property (weak, nonatomic) IBOutlet UIButton *loginButton;
@property (weak, nonatomic) IBOutlet UIImageView *headImage;
@property (nonatomic, strong) LoginDataRootClass *DataModel;
@end

@implementation MineViewController
- (void)viewDidLoad {
    [super viewDidLoad];

    self.navigationController.navigationBar.hidden = YES;
    
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    // Do any additional setup after loading the view.
    self.loginButton.layer.cornerRadius = self.loginButton.frame.size.height / 2.0;
    self.loginButton.layer.masksToBounds = YES;
    self.headImage.layer.cornerRadius = self.headImage.frame.size.width / 4.0;
    self.headImage.layer.masksToBounds = YES;
    
}
- (IBAction)setButton:(id)sender {
    
    OptionsViewController *optionVC = [[OptionsViewController alloc] init];
    UINavigationController *navigation = [[UINavigationController alloc] initWithRootViewController:optionVC];
    [self presentViewController:navigation animated:YES completion:^{
        
    }];
    
}

- (IBAction)loginButton:(id)sender {
    self.hidesBottomBarWhenPushed = YES;
    LoginViewController *loginVC = [[LoginViewController alloc] init];
    [self.navigationController pushViewController:loginVC animated:YES];
    
    self.hidesBottomBarWhenPushed = NO;
}

- (IBAction)registButton:(id)sender {
    self.hidesBottomBarWhenPushed = YES;
    RegisterViewController *registerVC = [[RegisterViewController alloc] init];
    [self.navigationController pushViewController:registerVC animated:YES];
    self.hidesBottomBarWhenPushed = NO;

}






- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
